package com.macro.mall.constant;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class CommonUtil {

    public interface OrderType {
        public static final String COMMON = "0";//普通订单
        public static final String GOLD = "1";//5g订单
        public static final String BENEFITS_JF = "2";//权益订单(积分商城)
        public static final String BENEFITS_JY = "3";//权益订单(集运平台)
    }

    public static final Map<String,String> orderTypeMap;
    static {
        final Map<String, String> tmpOrderTypeMap = new HashMap<>();
        tmpOrderTypeMap.put(OrderType.COMMON, OrderType.COMMON);
        tmpOrderTypeMap.put(OrderType.GOLD, OrderType.GOLD);
        tmpOrderTypeMap.put(OrderType.BENEFITS_JF, OrderType.BENEFITS_JF);
        tmpOrderTypeMap.put(OrderType.BENEFITS_JY, OrderType.BENEFITS_JY);
        orderTypeMap = Collections.unmodifiableMap(tmpOrderTypeMap);
    }

}
